Process Analysis Toolkit (PAT) 3.5 Help |
PCSP System is based on CSP Module extended
with probability syntax as highlighted below. Other syntax can be found in CSP Grammar Rules. assertion
: '#' 'assert'
definitionRef
(
( '|=' ( '(' | ')' | '[]' | '<>' | (ID - 'X') | STRING | '!'
| '?' | '&&' | '||' | '->' | '<->' | '/\\' | '\\/' | '.' | INT
)+ withClause
| 'deadlockfree'
withClause
| 'nonterminating'
withClause
|
'deterministic'
| 'reaches' ID
withClauseReach
| 'refines' definitionRef
withClause
| 'refines' '<F>' definitionRef
| 'refines' '<FD>' definitionRef
| 'refines' '<T>'
definitionRef
)
';'
; withClause ; withClauseReach ; pcaseCondition floatNumber
; timeoutExpr withinExpr deadlineExpr |
waituntilExpr waituntilExpr |
channelExpr
: 'with' ('pmax' | 'pmin' | 'prob')
: 'with' ('pmax' | 'pmin' | 'prob' | 'min' '(' expression ')' | 'max' '('
expression ')')
caseExpr
:
'case'
'{' caseCondition+
('default'
':'
elsec=interleaveExpr)?
'}'
|
'pcase'
'{'
pcaseCondition+
('default' ':'
elsec=interleaveExpr)?
'}'
|
ifExpr
;
:'['
floatNumber ']' ':'
interleaveExpr
;
: INT ('.' INT)?
:
withinExpr ('timeout'^ '['! expression ']'!
withinExpr)*
;
:
deadlineExpr
|
deadlineExpr 'within' '[' expression (',' expression)?
']'
;
: waituntilExpr 'deadline' '[' expression ']'
;
: channelExpr 'waituntil' '[' expression ']'
;